#include "stats.h"

Stats::Stats(){

}

Stats::~Stats(){

}

bool Stats::ParseMessage(){
  ifstream message;
  string line1, line2;

  message.open("testmessage");

  getline(message, line1); //"Peer"

   while(message.good()){
     getline(message, line1, '=');
     getline(message, line2);
     stringMap[line1] = line2;
   }
   cout << "contains: " << (int) stringMap.size() << '\n';
   cout << "stringMap[lastGoodVersion] -> " << stringMap["lastGoodVersion"] << '\n';
}
